// resolveJsonModule
import test from "./test.json";
// allowJs
// 导入js文件需要提供类型文件
// import { str } from "./test.js";

import lodash from "lodash";

// lib
const set = new Set<string>("abc");
console.log("first");

// declaration
export class Teacher {
  name: string;
  constructor(name: string) {
    this.name = name;
  }
  teaching() {
    console.log("teaching");
  }
}

// strictNullChecks
let str1: unknown = undefined;

class Customer {
  custname!: string;
}

// noImplicitReturns noUnusedParameters
function foo(num: number, age: number) {
  if (num < 3) return 3;
  else if (num > 3 && num < 100) return 10;
  else return 100;
}

foo(1, 1);

export {};
